const MockJS = require('mockjs')
const code = 200

exports.Me = MockJS.mock({
  code,
  result: {
    no: '@id',
    name: '@name',
    company: '阿黛尔网络科技有限公司',
    user_name: '@first',
    apartment: '基础开发部',
    supervisor: '@name',
    business: '高级软件开发工程师',
    level: '4级',
    region: '@city',
    place: '@county(true)',
    start_date: '@date',
    begin_date: '@date',
    probation: '@integer(3, 12)',
    duration: '@integer(1, 5)',
  }
})

exports.Base = MockJS.mock({
  code,
  result: {
    photo: 'https://thispersondoesnotexist.com/image',
    name: '@name',
    'type|1': ['正式员工', '实习生'],
    company: '阿黛尔网络科技有限公司',
    apartment: '基础开发部',
    business: '高级软件开发工程师',
    level: '4级',
    phone: '@integer(13100000000, 18999999999)',
    email: '@email',
    'gender|1': [0, 1]
  }
})